forming lines and patterns